PreviousNextTracker indexSee it online !

(110/308) 946 - TextTools: Block Fill Insert leaves invalid Selection

After done a successfull block fill or insert the remaining selection behaves a bit strange:

1. The same textblock action does not accept it as a rectanglar selection anymore

2. Trying to modify the selection (Shift+Cursor) shows a curious selection that can consist of two blocks (in single selection mode\!)


WinXP SP2
Sun JRE 1.6.0_03 and 1.5.0_11
jEdit 4.2final and 4.3pre12
TextToolsPlugin 1.14
single or multiple selection mode

Submitted rschwenn - 2008-01-16 18:18:57 Assigned ian_lewis
Priority 5 Labels
Status open Group None
Resolution None

Comments

2008-01-18 06:27:18
ian_lewis

- **assigned_to**: nobody --> ian_lewis

2008-01-23 11:54:05
ian_lewis

Logged In: YES
user_id=478898
Originator: NO

The problem is that the Block Fill Insert code does 2 things wrong.

1.) It converts all the tabs in the selection to spaces before processing thus loosing all the info about the offsets into the buffer that it needs to maintain the selection.

2.) When it finishes the block insert it restores the selection but adds 1 selection per line to the selection model rather than a single selection. Which results in weird behavior in single selection mode.

I basically need to rewrite the how it handles these two things.